#include<stdio.h>

int addsum(int a,int b)
{
    int result = 0;
    for(int i = a;i<=b;i++)
    {
        result +=i;
    }

    return result;

}


int main()
{
    int sum = addsum(1,10);
    printf("sum = %d\n",sum);
    return 0;
}
